<style>
.new-lay-span{
    display: inline-block;
    width: 45%!important;
    line-height: 3rem;
}
</style>





<div class="x-body">
    <h3>基本信息</h3>
    <hr>
    <form class="layui-form form_single" id="form" action="{:url()}" method="post">
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 商店 ：{$info.shop->shop_name}</span>
            <span class="layui-input-inline new-lay-span"> 币种 ：{$info.wallet.name}</span>

        </div>
        <div class="layui-form-item">

            <span class=" new-lay-span"> 用户名 ：{$info.member.username}</span>
            <span class="layui-input-inline new-lay-span"> 手机号码 ：{$info.member.mobile}</span>
        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单号 ：{$info.serial_number}</span>
            <span class="layui-input-inline new-lay-span"> 匹配次数 ：{$info.match_count}</span>
        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单剩余数量 ：{$info.surplus_number}</span>
            <span class="layui-input-inline new-lay-span"> 创建时间 ：{$info.create_time}</span>

        </div>

        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单总金额 ：{$info.total}</span>
            <span class="layui-input-inline new-lay-span"> 剩余金额 ：{$info.surplus_total}</span>

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单总数量 ：{$info.number}</span>
            <span class="layui-input-inline new-lay-span"> 修改时间 ：{$info.update_time}</span>

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 订单单价 ：{$info.price}</span>
            <span class="layui-input-inline new-lay-span"> 订单总金额 ：{$info.total}</span>

        </div>
        <div class="layui-form-item">
            <span class="layui-input-inline new-lay-span"> 状态 ：{$info.state_html}</span>
            <span class="layui-input-inline new-lay-span"> 取消时间 ：{$info.update_time}</span>

        </div>
        <hr>
        <h3>收款信息</h3>
        <hr>
        <table class="layui-table x-admin">
            <thead>
            <tr>
                <th>
                    序号
                </th>
                <th>类型</th>
                <th>名称</th>
                <th>账号</th>
                <th>收款二维码</th>
            </thead>
            {notempty name='info.paylist'}
            <tbody>
            {volist name='info.paylist' id='vo' key="k"}
            <tr>
                <td class="text-center">
                    {$k}
                </td>
                <td class="text-center">{$vo.pay_text}</td>
                <td class="text-center">{$vo.pay_name}</td>
                <td class="text-center">{$vo.true_name}(卡号：{$vo.bank_card})</td>
                <td class="text-center">{if condition="$vo.cover_id gt 0"}<img src="{$vo.cover_id|get_picture_url}" style="width:100px;margin-left:100px;">{/if}</td>

            </tr>
            {/volist}
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
            {/notempty}
            </tbody>
        </table>
            <hr>
        <a class="layui-btn ladda-button" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>



    </form>
</div>

<script>
    layui.use('form', function(){
        var form = layui.form;

        form.on('select(aihao)', function(data){
            console.log(data.elem); //得到select原始DOM对象
            console.log(data.value); //得到被选中的值
            console.log(data.othis); //得到美化后的DOM对象
            if(data.value==1){
                $('#video_url').hide();
                $('#video').show();
            }else{
                $('#video_url').show();
                $('#video').hide();
            }

            form.render(null, 'form');
        });


    });



</script>
